{% for host in hosts %}
    <option value="{{ host.id }}">{{ host.ip }}</option>
{% endfor %}